package com.ys.entity.logistics;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_AmazonAddress", catalog="Id")
public class TpAmazonAddress extends BaseEntity<TpAmazonAddress> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Guid", nameJava="guid", typeDataBase="varchar")
	private String guid;
	@YsField(nameDataBase="DistrictOrCounty", nameJava="districtOrCounty", typeDataBase="varchar")
	private String districtOrCounty;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="AddressLine1", nameJava="addressLine1", typeDataBase="varchar")
	private String addressLine1;
	@YsField(nameDataBase="AddressLine2", nameJava="addressLine2", typeDataBase="varchar")
	private String addressLine2;
	@YsField(nameDataBase="City", nameJava="city", typeDataBase="varchar")
	private String city;
	@YsField(nameDataBase="StateOrProvinceCode", nameJava="stateOrProvinceCode", typeDataBase="varchar")
	private String stateOrProvinceCode;
	@YsField(nameDataBase="CountryCode", nameJava="countryCode", typeDataBase="varchar")
	private String countryCode;
	@YsField(nameDataBase="PostalCode", nameJava="postalCode", typeDataBase="varchar")
	private String postalCode;
	@YsField(nameDataBase="DestinationFulfillmentCenterId", nameJava="destinationFulfillmentCenterId", typeDataBase="varchar")
	private String destinationFulfillmentCenterId;
	@YsField(nameDataBase="WarehouseArea", nameJava="warehouseArea", typeDataBase="varchar")
	private String warehouseArea;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpAmazonAddress setId(Long id) {
		this.id = id;
		return this;
	}
	public String getGuid() {
		return guid;
	}
	public TpAmazonAddress setGuid(String guid) {
		this.guid = guid;
		return this;
	}
	public String getDistrictOrCounty() {
		return districtOrCounty;
	}
	public TpAmazonAddress setDistrictOrCounty(String districtOrCounty) {
		this.districtOrCounty = districtOrCounty;
		return this;
	}
	public String getName() {
		return name;
	}
	public TpAmazonAddress setName(String name) {
		this.name = name;
		return this;
	}
	public String getAddressLine1() {
		return addressLine1;
	}
	public TpAmazonAddress setAddressLine1(String addressLine1) {
		this.addressLine1 = addressLine1;
		return this;
	}
	public String getAddressLine2() {
		return addressLine2;
	}
	public TpAmazonAddress setAddressLine2(String addressLine2) {
		this.addressLine2 = addressLine2;
		return this;
	}
	public String getCity() {
		return city;
	}
	public TpAmazonAddress setCity(String city) {
		this.city = city;
		return this;
	}
	public String getStateOrProvinceCode() {
		return stateOrProvinceCode;
	}
	public TpAmazonAddress setStateOrProvinceCode(String stateOrProvinceCode) {
		this.stateOrProvinceCode = stateOrProvinceCode;
		return this;
	}
	public String getCountryCode() {
		return countryCode;
	}
	public TpAmazonAddress setCountryCode(String countryCode) {
		this.countryCode = countryCode;
		return this;
	}
	public String getPostalCode() {
		return postalCode;
	}
	public TpAmazonAddress setPostalCode(String postalCode) {
		this.postalCode = postalCode;
		return this;
	}
	public String getDestinationFulfillmentCenterId() {
		return destinationFulfillmentCenterId;
	}
	public TpAmazonAddress setDestinationFulfillmentCenterId(String destinationFulfillmentCenterId) {
		this.destinationFulfillmentCenterId = destinationFulfillmentCenterId;
		return this;
	}
	public String getWarehouseArea() {
		return warehouseArea;
	}
	public TpAmazonAddress setWarehouseArea(String warehouseArea) {
		this.warehouseArea = warehouseArea;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpAmazonAddress setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpAmazonAddress setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpAmazonAddress setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpAmazonAddress tpAmazonAddress(
		String guid,
		String districtOrCounty,
		String name,
		String addressLine1,
		String addressLine2,
		String city,
		String stateOrProvinceCode,
		String countryCode,
		String postalCode,
		String destinationFulfillmentCenterId,
		String warehouseArea,
		Integer status
			) {
		TpAmazonAddress entity = new TpAmazonAddress();
		entity.setGuid(guid);
		entity.setDistrictOrCounty(districtOrCounty);
		entity.setName(name);
		entity.setAddressLine1(addressLine1);
		entity.setAddressLine2(addressLine2);
		entity.setCity(city);
		entity.setStateOrProvinceCode(stateOrProvinceCode);
		entity.setCountryCode(countryCode);
		entity.setPostalCode(postalCode);
		entity.setDestinationFulfillmentCenterId(destinationFulfillmentCenterId);
		entity.setWarehouseArea(warehouseArea);
		entity.setStatus(status);
		return entity;
	}
}